package com.salt.patterns.factory;

/**
 * @author KuangHaiBo
 * @date 2021/4/5 20:25
 */
public class Test {
    public static void main(String[] args) {
        SendWeChatMegFactory factory = new SendWeChatMegFactory();
        WeChatNoticeSender sub = factory.build("sub");
        sub.send();
        WeChatNoticeSender unite = factory.build("unite");
        unite.send();
    }
}
